package com.qixiaobao.system.mapper;

import com.qixiaobao.system.domain.Supply;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description 供应商 数据层
 * @Author yangxm
 * @Date 2025/6/17 8:58
 */
@Mapper
public interface SupplyMapper {

    /**
     * 查询所有供应商ID
     *
     * @return
     */
    public List<String> selectAllIds();

    /**
     * 查询所有供应商信息
     *
     * @return
     */
    List<Supply> selectSupplyList();

    /**
     * 根据ID查询供应商简称
     *
     * @param supplyIdList
     * @return
     */
    List<String> selectShortNameByIdList(List<Long> supplyIdList);

    /**
     * @Description 查询匹配后供应商简称
     * @Author yangxm
     * @Date 2025/6/18 11:22
     * @return java.util.List<com.qixiaobao.nondirect.invoice.domain.domain.Supply>
     */
    List<Supply> selectMathcSupplyShortNameList();

    /**
     * @Description 根据id查询供应商信息
     * @Author yangxm
     * @Date 2025/6/20 14:42
     * @param id
     * @return com.qixiaobao.nondirect.invoice.domain.domain.Supply
     */
    Supply selectSupplyById(Long id);

    /**
     * @Description 根据id列表查询供应商信息
     * @Author yangxm
     * @Date 2025/6/20 14:42
     * @param supplyIdList
     * @return java.util.List<com.qixiaobao.nondirect.invoice.domain.domain.Supply>
     */
    List<Supply> selectSupplyListByIdList(List<Long> supplyIdList);
}
